package test;

import java.util.Scanner;

public class MonthToSeasonConverter {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入月份（1-12）：");
        int month = scanner.nextInt();
        // 使用 switch 语句确定季节
        String season;
        switch (month) {
            case 3:
            case 4:
            case 5:
                season = "春季";
                break;
            case 6:
            case 7:
            case 8:
                season = "夏季";
                break;
            case 9:
            case 10:
            case 11:
                season = "秋季";
                break;
            default:
                season = "冬季";
        }
        System.out.println("该月份属于 " + season);
    }
}